package pattern.behavioral.strategy.withabstract;

import java.math.BigDecimal;

/**
 * @author: chaoyang.ren  
 * @date:Jun 1, 2017  
 * @time:4:51:54 PM   
 * @email:chaoyang.ren@foxmail.com  
 * @version: 1.0
 */
public abstract class AbstractFreightPriceStrategy {
	protected BigDecimal calculateFreight(BigDecimal price){
		BigDecimal freight = BigDecimal.valueOf(5d);
		System.out.print("添加运费："+freight);
		return price.add(freight);
	};
}

